// 存放状态
const state = {
  routes: {},
  rules: {
    title: [
      { required: true, message: "请输入菜单名称", trigger: "blur" },
      { min: 2, max: 140, message: "长度在 2 到 140 个字符", trigger: "blur" }
    ],
    name: [
      { required: true, message: "请输入前端名称", trigger: "blur" },
      { min: 2, max: 140, message: "长度在 2 到 140 个字符", trigger: "blur" }
    ],
    icon: [
      { required: true, message: "请输入前端图标", trigger: "blur" },
      { min: 2, max: 140, message: "长度在 2 到 140 个字符", trigger: "blur" }
    ]
  }
};

// 更改state中状态的逻辑，同步操作
const mutations = {};

// 提交mutation，异步操作
const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
